import fetch from '@/common/utils/http'

// 修改密码
export const editPassword = (data: any) =>
  fetch({
    url: '/platform/action/agent/changePassword',
    method: 'POST',
    data
  })

// 获取个人信息
export const getPersonInfo = () =>
  fetch({
    url: '/platform/action/getProfile',
    method: 'GET',
    params: {}
  })

// 获取个人信息
export const updatePersonInfo = (data: any) =>
  fetch({
    url: '/platform/action/updateProfile',
    method: 'POST',
    data
  })
